package teach;

public class InnerClassDemo {
    public static void main(String[] args) {
        //Mama.Baby b = new Mama().new Baby();
        //b.baby();
        Mama.Baby b = new Mama.Baby();

    }
}


class Mama{

    void create(){
        Baby b = new Baby();
    }

    /*class Baby{
        void baby(){
            System.out.println("baby");
        }
    }*/

    static class Baby{
        void baby(){
            System.out.println("baby");
        }
    }
}







